package com.ruoyi.project.dict.materialTopic.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;

/**
 * 资料专题对象 material_topic
 *
 * @author shixiangwen
 * @date 2022-02-24
 */
public class MaterialTopic extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 专题ID
     */
    private Long topicId;

    /**
     * 专题名称
     */
    @Excel(name = "专题名称")
    private String name;

    /**
     * 首页推荐
     */
    @Excel(name = "首页推荐")
    private Integer main;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /**
     * 权重
     */
    @Excel(name = "权重")
    private Long weight;

    private String cover;

    public void setTopicId(Long topicId) {
        this.topicId = topicId;
    }

    public Long getTopicId() {
        return topicId;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setMain(Integer main) {
        this.main = main;
    }

    public Integer getMain() {
        return main;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setWeight(Long weight) {
        this.weight = weight;
    }

    public Long getWeight() {
        return weight;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("topicId", getTopicId())
                .append("name", getName())
                .append("main", getMain())
                .append("createdTime", getCreatedTime())
                .append("weight", getWeight())
                .toString();
    }
}
